home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
src.arc
/
SLIP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-19
|
1KB
|
35 lines
#ifndef SLIP_ALLOC
#include "global.h"
/* SLIP definitions */
#define SLIP_ALLOC 40 /* Receiver allocation increment */
#define FR_END 0300 /* Frame End */
#define FR_ESC 0333 /* Frame Escape */
#define T_FR_END 0334 /* Transposed frame end */
#define T_FR_ESC 0335 /* Transposed frame escape */
/* Slip protocol control structure */
struct slip {
struct iface *iface;
struct mbuf *sndq; /* Encapsulated packets awaiting transmission */
int16 sndcnt; /* Number of datagrams on queue */
char escaped; /* Receiver State control flag */
struct mbuf *rbp; /* Head of mbuf chain being filled */
struct mbuf *rbp1; /* Pointer to mbuf currently being written */
char *rcp; /* Write pointer */
int16 rcnt; /* Length of mbuf chain */
struct mbuf *tbp; /* Transmit mbuf being sent */
int16 errors; /* Receiver input errors */
int type; /* Protocol of input */
};
extern struct slip Slip[];
/* In slip.c: */
void asy_rx __ARGS((int dev,void *p1,void *p2));
void asytxdone __ARGS((int16 dev));
int slip_raw __ARGS((struct iface *iface,struct mbuf *data));
int slip_send __ARGS((struct mbuf *data,struct iface *iface,int32 gateway,int prec,
int del,int tput,int rel));
#endif /* SLIP_ALLOC */